/*
 * ListOperatorExpression.java
 *
 * Created on March 1, 2007, 10:17 PM
 *
 * (C) R. Alexander Milowski alex@milowski.com
 */

package com.smallx.xpath.parser;

import org.infoset.xml.Item;
import org.infoset.xml.Name;

/**
 *
 * @author R. Alexander Milowski
 */
public class NodeTestExpression extends VoidExpression {
   
   Item.ItemType type;
   Name name;
   public NodeTestExpression(Item.ItemType type, Name name) {
      super(Expression.Operator.NodeTest);
      this.type = type;
      this.name = name;
   }
   
   public Item.ItemType getType() { return type; }
   
   public Name getName() { return name; }
   
   public String toString() {
      return "("+operator+" "+type+" "+name+" )";
   }
}
